package com.wp.dao;

import com.wp.entity.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: WangPeng
 * @createTime: 2022/11/17 15:53
 * @description:
 * @version: v1.0
 */
//@Mapper
@Repository
//@Component
public interface DeptDao {

    List<Dept> selectAll();

    int delete(int id);

    int insert(@Param("dept") Dept dept);

    int update(@Param("dept") Dept dept);
}

